import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

const store = new Vuex.Store({
  // state mutation actions getters module
  state: {
    // 全局个人角色信息
    roles: [],
    // 表单列表
    froms: []
  },
  mutations: {
    setRoles (state, data) {
      state.roles = data
    },
    setFroms (state, data) {
      state.froms = data
    }
  },
  getters: {
  },
  actions: {

  }
})

export default store
